package com.younion.vo;

import org.springframework.beans.BeanUtils;

import com.younion.util.json.JsonMapper;



public class CustomerBank {
	
	private static final JsonMapper   mapper          = JsonMapper.buildNormalMapper();
	
	private String code;
	
	private Integer score;
	
	private Double money;
	
	private String description;
	
	
	public CustomerBank(String json){
		BeanUtils.copyProperties(mapper.fromJson(json, this.getClass()), this);
	}
	
	public String toJson(){
		return mapper.toJson(this);
	}
	

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
